SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 36136: An error occurs in a SAS® 9.2 automatic macro variable when you submit large SQL procedure queries that invoke the implicit Pass-Through facility

DetailsAboutRate It

In SAS 9.2, the global automatic macro variable SYS_SQL_IP_STMT is created when PROC SQL invokes the implicit Pass-Through facility. This macro variable contains the SELECT statement, which is to be passed down to the database.

When the SELECT statement in SYS_SQL_IP_STMT exceeds a length of 65,534 bytes, an error similar to the following is written to the SAS Log:

ERROR: The length of the value of the macro variable SYS_SQL_IP_STMT
(76533) exceeds the maximum length (65534). The value has been truncated 
to 65534 characters.

PROC SQL queries that are generated by SAS solutions are more susceptible to this error. Such queries use a drag-and-drop graphical user interface. As a result, the queries generated from this method tend to be much larger than queries written manually.

This problem is fixed at SAS 9.2 TS2M2.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.2 TS1M09.2 TS2M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS1M09.2 TS2M2
Microsoft Windows XP 64-bit Edition9.2 TS1M09.2 TS2M2
Microsoft® Windows® for x649.2 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Datacenter Edition9.2 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition9.2 TS1M09.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.2 TS1M09.2 TS2M2
Microsoft Windows XP Professional9.2 TS1M09.2 TS2M2
Windows Vista9.2 TS1M09.2 TS2M2
64-bit Enabled AIX9.2 TS1M09.2 TS2M2
64-bit Enabled HP-UX9.2 TS1M09.2 TS2M2
64-bit Enabled Solaris9.2 TS1M09.2 TS2M2
HP-UX IPF9.2 TS1M09.2 TS2M2
Linux9.2 TS1M09.2 TS2M2
Linux for x649.2 TS1M09.2 TS2M2
OpenVMS on HP Integrity9.2 TS1M09.2 TS2M2
Solaris for x649.2 TS1M09.2 TS2M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.